package com.qf.demo;

import com.qf.config.JdbcConfig;
import com.qf.config.SpringConfig;
import com.qf.dao.AccountDao;
import com.qf.pojo.Account;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @ClassName Demo01
 * @Description TODO
 * @Author 86181
 * @Date 2022/9/1 21:20
 * @Version 1.0
 **/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class Demo01 {
    @Autowired
    private AccountDao accountDao;

    @Test
    public void test(){
        Account lc = accountDao.findAccountByName("ls");
        System.out.println(lc);
    }
}
